package main

import (
	"Test_go/bitmap"
	"fmt"
	"unsafe"
)

var (
	Abc int
	Def string
)

const (
	str_a = "hello world"
	bb    = len(str_a)
	cc    = unsafe.Sizeof(str_a)
)

var hello, world = "abc", "118"

// Helloworld := "abc"

func main1() {
	fmt.Println("hello")
	// Add()
	bitmap.Add()
	a_array := [10]int{1, 2, 3, 4, 5, 6, 7}
	var a_slices = a_array[1:4]
	fmt.Printf("%+v\n", a_slices)

	var a *int
	var b []int
	var c map[string]int
	var d chan int
	var f func(string) int
	var e error
	fmt.Println(a == nil)
	fmt.Println(b == nil)
	fmt.Println(c == nil)
	fmt.Println(d == nil)
	fmt.Println(e == nil)
	fmt.Println(f == nil)
	aa := 23
	aa = 12
	fmt.Println(aa)
	fmt.Println(hello)
	fmt.Println(world)
	// var aa int
	x, y := 1, 2
	x, y = y, x
	fmt.Println(x, y)

	const idet int = 12
	fmt.Println(idet)

	fmt.Println("常量")
	fmt.Println(str_a)
	fmt.Println(bb)
	fmt.Println(cc)

}
